﻿<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>麦戏聚—孟京辉经典戏剧作品《恋爱的犀牛》 -温州演出网</title>
        <meta name="author" content="温州演出网" />
        <link href="css/base.css" rel="stylesheet" media="screen" type="text/css" />
        <link href="css/booking.css" rel="stylesheet" media="screen" type="text/css" />

        <script type="text/javascript">
            document.write("<scr" + "ipt src=\"js/jquery-1.8.3.min.js\"></sc" + "ript>");
            document.write("<scr" + "ipt src=\"js/common.js\"></sc" + "ript>");
            document.write("<scr" + "ipt src=\"js/jquery.validate.js\"></sc" + "ript>");
            document.write("<scr" + "ipt src=\"js/book.js\"></sc" + "ript>");
        </script>
        <script language="javascript" type="text/javascript" src="js/DatePicker/WdatePicker.js"></script>
    </head>
    <style>
        body{
            font-family: "微软雅黑";
        }
        .errorb{
            border:1px solid red !important;
        }
    </style>
    <body>
        <link href="css/headernew.css?v=2014.03" rel="stylesheet" media="screen" type="text/css" />

        <!-- 顶部介绍结束 -->
        <div class="top">
            <ul>
                <li class="fl txt"><p>    <span style="color: rgb(153, 153, 153); font-family: 微软雅黑; font-size: 12px; line-height: 35px;">HI , 欢迎访问温州演出网</span></p></li>
                <li class="fr">
                    <span id="_userLogin" class="fl"></span>

                    <a class="fl" rel="nofollow" href="javascript:void(0);" onClick="ST.Util.addFavourite()">收藏本站</a>

                    <a class="fl" rel="nofollow" href="/help/show_17.html">联系我们</a>
                    <a class="wb_ico fl" href="http://weibo.com/geyangmedia" target="_blank">官方微博</a>
                    <a class="wx_ico fl" href="javascript:;">微信我们</a> <div class="wx_img"><p><img src="uploads/main/allimg/20151024/20151024153912.jpg" width="124" height="125"/></p></div>
                    <div class="top_web_map bor_bag fl">
                        <a class="web_nav_ico" href="javascript:;"><s></s>网站导航</a>
                        <div class="w_nav_map">

                            <a href="/tuan/">热门演出</a>

                            <a href="/spots/">演艺场馆</a>

                            <a href="/raiders/all-1">文娱新闻</a>

                            <a href="/raiders/jingji.php?attrid=3">演艺经纪</a>

                            <a href="/raiders/jiemu.php?attrid=4">节目推荐</a>

                            <a href="/raiders/jiaoao.php?attrid=2">温州骄傲</a>

                            <a href="/raiders/cehua.php?attrid=5">活动策划</a>

                            <a href="/raiders/shangji.php?attrid=37">演出商机</a>

                            <a href="/raiders/yishu.php?attrid=8">艺术培训</a>

                            <a href="/questions/">问答</a>


                        </div>
                    </div>

                </li>  
            </ul>
        </div>
        <!-- 顶部介绍结束 -->
        <!-- logo and search开始 -->
        <div class="big">
            <div class="top_1210">
                <div class="top_mt">
                    <div class="logo"><a href=""><img src="uploads/main/allimg/20150901/20150901102753.jpg" alt="温州演出网" title="温州演出网" class="fl"/></a></div>
                    <div class="all_search">
                        <div class="top_search">
                            <s><img class="fl" src="images/search_ico.png" /></s>
                            <input class="s_txt g_search" type="text" name="" value="请输入关键词" datadef="请输入关键词" />
                            <input class="s_btn cloud_search" type="button" name="" value="搜&nbsp;索" />
                            <div class="searcg_hot">
                                <span>热门搜索：</span>


                            </div>
                        </div>
                        <!--div class="h_phone_num">
                          <span>24小时客服电话：</span>
                          <p>057786888101</p>
                        </div-->
                    </div>
                </div>
            </div>
        </div>
        <!-- logo and search结束 -->

        <!-- 导航开始 -->
        <div class="nav">

            <div class="menu">

                <div class="main_nav_list">
                    <a href="/">首页</a>

                    <a href="/tuan/"
                       1
                       title="热门演出">

                        热门演出</a>

                    <a href="/spots/"
                       1
                       title="演艺场馆">

                        演艺场馆</a>

                    <a href="/raiders/all-1"
                       1
                       title="文娱新闻">

                        文娱新闻</a>

                    <a href="/raiders/jingji.php?attrid=3"
                       1
                       title="演艺经纪">

                        演艺经纪</a>

                    <a href="/raiders/jiemu.php?attrid=4"
                       1
                       title="节目推荐">

                        节目推荐</a>

                    <a href="/raiders/jiaoao.php?attrid=2"
                       1
                       title="温州骄傲">

                        温州骄傲</a>

                    <a href="/raiders/cehua.php?attrid=5"
                       1
                       title="活动策划">

                        活动策划</a>

                    <a href="/raiders/shangji.php?attrid=37"
                       1
                       title="演出商机">

                        演出商机</a>

                    <a href="/raiders/yishu.php?attrid=8"
                       1
                       title="艺术培训">

                        艺术培训</a>

                    <a href="/questions/"
                       1
                       title="问答">

                        问答</a>

                    <!--<div class="skip">
                      <a href="#">目的地</a>
                      <a href="#"><s>|</s>社区</a>
                      <a href="#"><s>|</s>活动</a>
                    </div>-->
                </div>
            </div>

        </div>
        <!-- 导航结束 -->

        <script language="javascript">
            var siteUrl = '/';
            $(function() {

                //导航的选中状态
                $(".nav .menu a").each(function() {
                    var url = window.location.href;


                    url = url.replace('index.php', '');
                    url = url.replace('index.html', '');
                    var ulink = $(this).attr("href");
                    if (url == ulink)
                    {
                        $(this).addClass('active');
                        $(this).prev().addClass('bnone');
                    }
                })

                //用户登陆状态
                $.ajax({
                    type: "POST",
                    url: "/ajax/ajax_login.php",
                    data: "dopost=LoginStatus",
                    success: function(data) {
                        $('#_userLogin').html(data);
                        //菜单指向
                        $(".my-booking").hoverDelay(
                                function()
                                {
                                    $(".mb-hide").show();
                                }, function() {
                            $(".mb-hide").hide();
                        }
                        )
                        hoverCssChange();

                    }
                });
                //搜索框事件
                $(".g_search").focusEffect();

                //云搜索点击
                $(".cloud_search").click(function() {
                    var keyword = $(".g_search").val();
                    var def = $(".g_search").attr('datadef');
                    if (keyword == '' || keyword == def) {
                        $(".g_search").focus();
                    }
                    else {
                        var searchUrl = siteUrl + 'cloudsearch.php?keyword=' + keyword;
                        window.open(searchUrl);
                    }

                })
                //微信指向
                $(".wx_ico").hoverDelay(
                        function() {
                            $(".wx_img").show();
                        },
                        function() {
                            $(".wx_img").hide();
                        }



                )
                //导航指向
                $(".top_web_map").hoverDelay(
                        function() {
                            $(".w_nav_map").show();
                        },
                        function() {
                            $(".w_nav_map").hide();
                        }



                )
                hoverCssChange();
            })

            function hoverCssChange()
            {
                //指向样式
                $(".bor_bag").mouseover(function() {
                    $(this).css({"background": "#fff", "border-left": "1px solid #e6e5e5", "border-right": "1px solid #e6e5e5"})
                    $(this).children(".web_nav_ico").css("background", "#fff")
                })
                $(".bor_bag").mouseout(function() {
                    $(this).css({"background": "none", "border-left": "1px solid #f1f1f1", "border-right": "1px solid #f1f1f1"});
                    $(this).children(".web_nav_ico").css("background", "#f1f1f1");
                })

            }
        </script>
        <div class="width_1210">
            <!-- 面包屑and滚动订单开始 -->
            <div class="top_first">
                <div class="crumbs"><a href="">首页</a> &raquo; <a href="/tuan/">热门演出预订</a></div>

            </div>
            <!--订单页面-->
            <div class="order_con" >
                <form id="dingfrm" action="?dopost=savebooking" method="post">
                    <div class="order_left">
                        <div class="order_data_con">
                            <div class="liuc"><img class="fl" src="images/liucheng.gif"/></div>
                            <!--产品基本信息-->
                            <div class="order_cp_show">
                                <h3>项目编号：G0110</h3>
                                <div class="order_dl_con">
                                    <dl>
                                        <dt>演出名称：</dt>
                                        <dd>麦戏聚—孟京辉经典戏剧作品《恋爱的犀牛》 </dd>
                                    </dl>

                                    <dl class="jifen">
                                        <dt>积分优惠：</dt>
                                        <dd>



                                        </dd>
                                    </dl>
                                </div>
                            </div>
                            <!--产品价格数量-->
                            <div class="cp_num_con">
                                <dl>
                                    <dt>
                                    <span>日期</span>
                                    <span>单价</span>
                                    <span>购买数量</span>
                                    <span>金额</span>
                                    </dt>
                                    <dd>
                                        <ul>
                                            <li><input type="text" readonly name="usedate" id="usedate" style="line-height: 25px;height:25px;" value="2016-11-05周六"></li>

                                            <li>&yen;180</li>
                                            <li>
                                                <span class="down">-</span>
                                                <input type="text" class="gm_num"  id="dingnum" value="1" readonly data-contain="rdnum" data-price="180" data-usedate="2016-11-05周六" />
                                                <input type="hidden" name="iprice" value="180"/>
                                                <span class="up">+</span>
                                            </li>
                                            <li>&yen;<span class="singleprice"></span></li>
                                        </ul>
                                        <input type="text" name="totalprice" style="display:none" class="totalprice" />
                                        <input type="text" name="totaldingnum" style="display:none" class="totaldingnum" />
                                        <input type="text" name="dingdesc" style="display:none" class="dingdesc" />
                                        <input type="text" name="showstatus" style="display:none" class="showstatus" value="1" />
                                    </dd>
                                </dl>
                            </div>
                            <!--积分抵现金-->

                            <!--是否配送方式-->
                            <div class="zhifu_fs order3">
                                <h3>配送方式<span style="margin-left: 20px;font-size: 12px;font-weight: 500;">快递统一使用顺丰快递 运费12元(<a href="/help/show_5.html">点击查看送货上门配送范围</a>)</span></h3> 
                                <ul>
                                    <li class="h1">
                                        <div class="i1"><img src="images/kdps.jpg" /></div>
                                        <div class="i1"><img src="images/smqp.jpg" /></div>
                                        <div class="i1"><img src="images/spsm.jpg" /></div>
                                    </li>
                                    <li class="h2">
                                        <div class="i1"><input type="radio" name="deliveryway" checked="checked" onclick="booking.countPrice();" value="express"/></div>
                                        <div class="i1"><input type="radio" name="deliveryway" onclick="booking.countPrice();" value="pickup"/></div>
                                        <div class="i1"><input type="radio" name="deliveryway" onclick="booking.countPrice();" value="door"/></div>
                                    </li>
                                </ul>
                            </div>




                            <!--是否配送方式end-->
                            <!--预定信息-->
                            <div class="yd_msg">
                                <h3>收货信息<span>手机号码快速下单，无需注册登录！</span></h3>
                                <div class="msg_con">
                                    <dl>
                                        <dt>收货人：</dt>
                                        <dd><input type="text" name="linkman" id="linkman" class="msg_text" value="" /><span>（*此处可输入收件人姓名)</span></dd>
                                    </dl>
                                    <dl>
                                        <dt>联系手机：</dt>
                                        <dd><input type="text" class="msg_text" name="linktel" id="linktel" value="" /><span>（*必填，将作为订单查询和处理的凭证）</span></dd>
                                    </dl>
                                    <!--dl>
                                        <dt>邮箱：</dt>
                                        <dd><input type="text" class="msg_text" name="linkemail" id="linkemail" value="" /><span></span></dd>
                                    </dl-->
                                    <dl>
                                        <dt>收件地址：</dt>
                                        <dd><textarea class="msg_area" name="remarkinfo" id="remarkinfo" cols="" rows=""></textarea><span>（*此处可输入收件地址或备注信息等)</span></dd>
                                    </dl>
                                </div>
                            </div>
                            <!--游客信息-->
                            <div class="yk_msg" style="display: none">
                                <h3>游客信息<span style="cursor: pointer" id="tourerlist">点击展开，填写每位游客身份信息</span></h3>
                                <div class="msg_con" id="tourer">

                                </div>
                            </div>
                            <!--支付方式-->
                            <div class="zhifu_fs">
                                <h3>支付方式</h3>
                                <div class="fs_con">
                                    <dl>
                                        <dt>在线支付方式</dt>
                                        <dd>
                                            <ul>  <li>
                                                    <label>
                                                        <em><img class="fl" src="images/zfb_ico.gif" alt="支付宝" /></em>
                                                        <span>即时到账</span>
                                                        <input type="radio" name="choosepay" value="11" data-type="支付宝">
                                                    </label>
                                                </li><li>
                                                    <label>
                                                        <em><img class="fl" src="images/weixin.png" alt="微信支付"/></em>
                                                        <span>微信</span>
                                                        <input type="radio" name="choosepay" value="8" data-type="微信支付">
                                                    </label>
                                                </li></ul></dd></dl>
                                </div>
                            </div>




                            <!--支付方式end-->
                            <!--订单金额-->
                            <div class="order_money">
                                <p><em>验证码：<input class="cd-txt" name="checkcode" type="text"/><img  class="wd_yzm" src="/include/vdimgck.php" width="80" height="30"  onclick="this.src = '/include/vdimgck.php?rand=' + Math.random()" /></em>
                                    <span style=" font-size: 13px;">*验证码为数字相加的总和</span>
                                </p>

                                <p><em>订单金额：&yen;<span class="totalprice" id="totalprice"></span>元</em></p>

                            </div>
                            <!--预定按钮-->
                            <div class="tj_btn_order">
                                <a href="javascript:;" class="btnsaveorder">提交订单</a>
                            </div>
                        </div>
                        <div class="order_txt xxinfo" style="display: none">
                            <h3 class="tit" id="xianxia">线下支付说明</h3>
                            <div class="txt_con">

                            </div>
                        </div>
                    </div>

                    <!--右侧订单数据-->
                    <div class="order_box_right">
                        <div class="order_rig">
                            <div class="order_js_tit">订单结算</div>
                            <div class="order_box">
                                <div class="cl_cp_tj">
                                    <ul>
                                        <li>
                                            <span class="sp_1 udate">2016-10-15</span>
                                            <span class="sp_2 rdnum"></span>
                                            <span class="sp_3 totalprice"></span>
                                        </li>

                                    </ul>
                                </div>
                                <div class="integral jftinfo" style="display: none;">使用积分抵用现金&yen;0元</div>
                                <div class="payment">使用<span class="choosepayname"></span>支付</div>
                                <div class="order_num">
                                    <p class="p1">订单金额：<span class="totalprice" id="totalprice"></span></p>
                                    <p class="p2">支付金额：<span class="payprice"></span></p>
                                </div>
                                <div class="tj_order_btn">

                                    <input type="hidden" name="jifentprice" id="jifentprice" value="0"/>
                                    <input type="hidden" name="jifenbook" value="0"/>
                                    <input type="hidden" name="jifencomment" value="0"/>
                                    <input type="hidden" name="dingjin" value="0"/>
                                    <input type="hidden" name="productautoid" value="110"/>
                                    <input type="hidden" name="tuanid" value="110"/>
                                    <input type="hidden" name="productaid" value="110"/>
                                    <input type="hidden" name="webid" value="0"/>
                                    <input type="hidden" name="productname" value=""/>
                                    <input type="hidden" name="paytype" value="1"/>
                                    <input type="hidden" name="suitid" id="suitid" value=""/>
                                    <input type="hidden" name="usejifen" id="usejifen" value="0">
                                    <input type="hidden" name="zhekou"  id="zhekou"  value="0.95"/>
                                    <input type="hidden" name="dj" id="dingjin" value="0">
                                    <input type="button" class="btnsaveorder" value="提交订单" />
                                </div>
                            </div>
                        </div>
                    </div>
                </form>

            </div>
        </div>

        <link href="css/footer.css?v=2014.03" rel="stylesheet" media="screen" type="text/css" />

        <!--底部 begin-->
        <div class="dm-bottom-wrap">
            <div class="dm-bottom"> 

                <div class="dm-helper">
                    <dl>
                        <dt>订票方式</dt>
                        <dd><a href="/help/show_23.html" target="_blank">上门订票</a></dd><dd><a href="/help/show_3.html" target="_blank">团体订票</a></dd><dd><a href="/help/show_2.html" target="_blank">电话订票</a></dd><dd><a href="/help/show_1.html" target="_blank">在线订票</a></dd>
                    </dl><dl>
                        <dt>配送方式</dt>
                        <dd><a href="/help/show_8.html" target="_blank">电子票兑换</a></dd><dd><a href="/help/show_7.html" target="_blank">邮寄快递</a></dd><dd><a href="/help/show_6.html" target="_blank">上门取票</a></dd><dd><a href="/help/show_5.html" target="_blank">送票上门</a></dd>
                    </dl><dl>
                        <dt>支付方式</dt>
                        <dd><a href="/help/show_12.html" target="_blank">上门付款</a></dd><dd><a href="/help/show_11.html" target="_blank">票到付款</a></dd><dd><a href="/help/show_10.html" target="_blank">转账付款</a></dd><dd><a href="/help/show_9.html" target="_blank">在线支付</a></dd>
                    </dl> 

                    <dl>
                        <dt><span class="p15"  style="margin-left:15px;">温演公众号</span></dt>
                        <dd><a target="_blank" class="dm-code"></a></dd>
                    </dl>

                    <dl>
                        <dt>常见问题</dt>
                        <dd><a href="/help/show_16.html" target="_blank">发票说明</a></dd><dd><a href="/help/show_15.html" target="_blank">退换及缺货说明</a></dd><dd><a href="/help/show_14.html" target="_blank">订单管理帮助</a></dd><dd><a href="/help/show_13.html" target="_blank">购票流程</a></dd>
                    </dl> 

                    <dl>
                        <dt>售后服务</dt>
                        <dd><a href="/help/show_17.html" target="_blank">联系我们</a></dd>
                        <dd><a href="http://wpa.qq.com/msgrd?v=3&uin=315806196&site=qq&menu=yes" target="_blank">在线客服</a></dd>
                        <dd><a href="http://wpa.qq.com/msgrd?v=3&uin=315806196&site=qq&menu=yes" target="_blank">投诉与建议</a></dd>
                    </dl> 

                    <dl>
                        <dt>关于我们</dt>
                        <dd><a href="/help/show_22.html" target="_blank">网站招聘</a></dd><dd><a href="/help/show_21.html" target="_blank">服务协议</a></dd><dd><a href="/help/show_20.html" target="_blank">关于网站</a></dd>
                    </dl> 

                </div>

                <div class="dm-links">

                </div>
                <div class="dm-copyright">版权所有 温州演出网 Copyright © 2012-2015 All Rights Reserved <a href="http://www.miitbeian.gov.cn/">浙ICP备13030361号-1</a><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
                    document.write(unescape("%3Cspan id='cnzz_stat_icon_1256649415'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/stat.php%3Fid%3D1256649415%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script></div>
            </div>
        </div>
        <!--底部 end-->



        <script>
            $(function() {
                $('#roll').hide();
                $(window).scroll(function() {
                    if ($(window).scrollTop() >= 100) {
                        $('#roll').fadeIn(400);
                    }
                    else
                    {
                        $('#roll').fadeOut(200);
                    }
                });
                $('#roll_top').click(function() {
                    $('html,body').animate({scrollTop: '0px'}, 800);
                });
            });
        </script>
        <style type="text/css">
            #roll_top{
                position:relative;
                cursor:pointer;
                height:53px;
                width:54px;
            }
            #roll_top {
                background:url(images/top.png) no-repeat 0px -64px;
            }
            #roll_top:hover { background-position:0px 0px;}
            #roll {
                display:none;
                width:54px;
                position:fixed;
                right:30px;
                bottom:30px;
                _position:absolute;
                _margin-top:300px;
                _top:expression(eval(document.documentElement.scrollTop));
            }
        </style>
        <div id="roll"><div title="回到顶部" id="roll_top"></div></div>  
        <script src="/qqkefu/qqkefu.js"></script>

        <!-- 底部介绍结束 -->



        <script src="js/layer/layer.min.js"></script>

        <script>
            $(function() {
                var orderRigHeight = $('.order_rig').offset().top;
                $(window).scroll(function() {
                    var scroHeight = $(document).scrollTop();

                    if (scroHeight >= orderRigHeight) {
                        $('.order_rig').css({"position": "fixed", "z-index": "999", "top": "0"});
                    } else if (scroHeight < orderRigHeight) {
                        $('.order_rig').css({"position": "static"});
                    }

                })
                //统计价格
                booking.countPrice();
                //人数添加事件
                $(".cp_num_con").find('.up').click(function() {
                    var txt = $(this).parent('li').first().find('.gm_num');
                    var rdnum_contain = txt.attr('data-contain');
                    var n = Number(txt.val()) + 1
                    txt.val(n);
                    $('.' + rdnum_contain).html(n);
                    booking.countPrice();
                    booking.addTourer();
                })
                //人数减少事件
                $(".cp_num_con").find('.down').click(function() {
                    var txt = $(this).parent('li').first().find('.gm_num');
                    var rdnum_contain = txt.attr('data-contain');
                    var n = Number(txt.val()) - 1;
                    n = n < 0 ? 0 : n;

                    txt.val(n);
                    $('.' + rdnum_contain).html(n);
                    booking.countPrice();
                    booking.removeTourer();

                })
                //出行时间选择
                /* $("#usedate").click(function(){
                 WdatePicker({onpicked: function(){$('.udate').html($('#usedate').val())},skin:'whyGreen',dateFmt:'yyyy-MM-dd',minDate:'%y-%M-#{%d+1}'})
                 })*/

                //使用积分
                if ($("#jifenchoose").length > 0) {
                    $("#jifenchoose").click(function() {
                        var status = $(this).attr('checked');
                        if (status == 'checked') {
                            $("#usejifen").val(1);
                            $('.jftinfo').show();
                        }
                        else {
                            $("#usejifen").val(0);
                            $('.jftinfo').hide();
                        }
                        booking.countPrice();

                    })
                }

                $("input[name='choosepay']").click(function() {
                    var payname = $(this).attr('data-type');
                    $(".choosepayname").html(payname);
                })
                //支付方式第一个选中
                $("input[name='choosepay']").first().trigger('click');


                //联系人隐藏
                $("#tourerlist").click(function() {
                    $("#tourer").toggle();
                })
                //表单验证

                $("#dingfrm").validate({
                    submitHandler: function(form) {

                        booking.combineData();//合并数据.
                        var param = $("#dingfrm").serialize();
                        // console.log(param);

                        bookSubmit(param, "?dopost=savebooking");
                        return false;

                    },
                    rules: {
                        usedate: {required: true},
                        linktel: {
                            required: true
                        },
                        'checkcode': {
                            required: true
                        }
                    },
                    messages: {
                        usedate: {required: ''},
                        linktel: {
                            required: ""
                        },
                        'checkcode': {
                            required: ''
                        }


                    },
                    highlight: function(element, errorClass, validClass) {
                        $(element).addClass('errorb');
                    },
                    unhighlight: function(element, errorClass) {
                        $(element).removeClass('errorb');
                    }



                });
                //添加联系人
                booking.addTourer();

                //下订单
                $(".btnsaveorder").click(function() {
                    var deliveryway = $('.h2 input[name="deliveryway"]:checked ').val();
                    if (deliveryway == 'express' || deliveryway == 'door' || deliveryway == 'pickup') {
                        if ($.trim($("#remarkinfo").val()) == "") {
                            $("#remarkinfo").focus();
                            $("#remarkinfo").addClass('errorb');
                            return false;
                        } else if ($.trim($("#linkman").val()) == "") {
                            $("#linkman").focus();
                            $("#linkman").addClass('errorb');
                            return false;
                        }

                    }
                    $("#dingfrm").submit();
                })
            })

            var booking = {
                countPrice: function(e) {
                    var totalprice = 0;
                    var dingnum = 0;
                    var dingdesc = [];
                    $(".cp_num_con").find('ul li #dingnum').each(function() {
                        var singprice = $(this).attr('data-price');
                        var singdingnum = Number($(this).val());
                        var singleprice = singprice * singdingnum;

                        dingdesc.push(singprice + ',' + singdingnum);
                        totalprice = totalprice + singleprice;
                        dingnum = dingnum + singdingnum;
                        $(this).parent().parent().find(".singleprice").html(singleprice);
                    });

                    var dingjin = $("#dingjin").val() ? $("#dingjin").val() : 0;
                    dingjintotalprice = dingnum * dingjin;
                    payprice = dingjintotalprice != 0 ? dingjintotalprice : totalprice;
                    var usejifen = $("#usejifen").val();
                    var minusprice = $("#jifentprice").val();
                    if (usejifen == 1) {
                        totalprice = totalprice - minusprice;
                        payprice = payprice - minusprice;
                    }
                    if (payprice > totalprice) { //如果人为设置定金大于总价,则直接读取totalprice.
                        payprice = totalprice;
                    }
                    //折扣优惠
                    var zhekou = document.getElementById("zhekou").value;
                    if (zhekou != 0) {
                        totalprice = parseInt(totalprice) * zhekou;
                        payprice = parseInt(payprice) * zhekou;
                    }

                    //配送方式
                    var deliveryway = $('.h2 input[name="deliveryway"]:checked ').val();
                    if (deliveryway == 'express') {
                        totalprice = parseInt(totalprice) + 12;
                        payprice = parseInt(payprice) + 12;
                    }



                    $(".cp_num_con .dingdesc").val(JSON.stringify(dingdesc)); //dingdesc.join(',')
                    $(".cp_num_con .totaldingnum").val(dingnum);
                    $(".cp_num_con .totalprice").val(totalprice);
                    $('#totalprice').html(totalprice);
                    $('.payprice').html(payprice);
                },
                addTourer: function() {

                    var totalnum = 0;
                    $('.roomlist').find('.gm_num').each(function(i) {
                        totalnum += Number($(this).val());
                    })
                    var $info = '';
                    var hasnum = $('#tourer').find('.msg_list').length + 1;
                    for (i = hasnum; i <= totalnum; i++) {

                        $info = '<div class="msg_list">';
                        $info += '      <ul>';
                        $info += '        <li><em>游客' + i + '</em></li>'
                        $info += '    <li>'
                        $info += '   <em>姓名：</em>'
                        $info += '<input type="text" name="tourername' + i + '" class="text_msg tourname" id="tourname' + i + '" />'

                        $info += '    <label><input type="radio" name="tourersex' + i + '" value="男" checked >男</label>'
                        $info += '    <label><input type="radio" name="tourersex' + i + '" value="女" >女</label>'

                        $info += '</li>'
                        $info += '   <li><em>联系手机：</em><input type="text" name="tourermobile' + i + '" class="text_msg tourmobile" id="tourmobile' + i + '" /></li>'
                        $info += '    <li>'
                        $info += '    <em>证件号码：</em>'
                        $info += '<select class="msg_select tourcardtype" name="tourercardtype' + i + '">'
                        $info += '   <option value="身份证">身份证</option>'
                        $info += '<option value="因私护照">因私护照</option>'
                        $info += '<option value="港澳通行证">港澳通行证</option>'
                        $info += '<option value="台胞证">台胞证</option>'
                        $info += '<option value="军官证">军官证</option>'
                        $info += '<option value="出生日期">出生日期</option>'
                        $info += '</select>'
                        $info += '<input type="text" class="text_msg ml_1 tourcard" id="tourcard' + i + '"  name="tourercard' + i + '" />'
                        $info += '    </li>'
                        $info += '</ul>'
                        $info += '</div>';
                        $("#tourer").append($info);
                        // $('#tourname'+i).rules('add', {required: true, IsRealName: true});
                        // $('#tourmobile'+i).rules('add', {isMobile: true });
                        // $('#tourcard'+i).rules('add', { required: true});

                    }




                },
                removeTourer: function() {
                    $('#tourer').find('.msg_list').last().remove();
                },
                combineData: function() {

                    var udateArr = [];
                    var dnumArr = [];
                    var dpriceArr = [];

                    $(".roomlist").find('.gm_num').each(function() {
                        var ddate = $(this).attr('data-usedate');
                        var dnum = $(this).val();
                        var dprice = $(this).attr('data-price');//报价
                        udateArr.push(ddate);
                        dnumArr.push(dnum);
                        dpriceArr.push(dprice);
                    })

                    var udate = udateArr.join('|');
                    var dnum = dnumArr.join('|');
                    var dprice = dpriceArr.join('|');
                    $("#udate").val(udate);
                    $("#dnum").val(dnum);
                    $("#dprice").val(dprice);

                }


            };



        </script>
    </body>
</html>
